package com.wfcm.service;

import com.wfcm.entity.WfMemberSessionEntity;

import java.util.List;
import java.util.Map;

/**
 * 接口用户登录session
 * 
 * @author xlf
 * @email xlfbe696@gmail.com
 * @date 2018-01-22 13:57:19
 */
public interface WfMemberSessionService {
	
	WfMemberSessionEntity queryObject(long userid);
	
	WfMemberSessionEntity queryByToken(String token);
	
	List<WfMemberSessionEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(WfMemberSessionEntity wfMemberSession);
	
	void update(WfMemberSessionEntity wfMemberSession);
	
	void delete(Integer userid);
	
	void deleteBatch(Integer[] userids);
	
	/**
	 * 生成token
	 * @param userId  用户ID
	 * @return        返回token相关信息
	 */
	Map<String, Object> createToken(long userId);
}
